//
//  HMTempViewController.swift
//  weibo
//
//  Created by LCH on 16/3/4.
//  Copyright © 2016年 lch. All rights reserved.
//


import UIKit
// 利用UIBarButtonItem分类方法
class HMTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_back_withtext", title: "返回", target: self, action: "back")
        
    }
   
    func back() {
    
      navigationController?.popViewControllerAnimated(true)
    
    }

}
